package com.zhy.sunmi.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * @ClassName SoldGoodDetail
 * @Description TODO
 * @Author zhouhongyang
 * @DATE 2021/9/29 12:33 上午
 * @Version 1.0
 */
@Entity
public class SoldGoodDetail {
    @Id(autoincrement = true)
    //主键id
    private Long id;
    //sellGoodHistory表id关联用
    private Long sellGoodHistoryId;
    //商品id
    private Long productId;
    //商品英文名
    private String englishName;
    //商品中文名
    private String chineseName;
    //商品购买数量
    private Long number;
    //商品未优惠前单价（原价）
    private double price;
    //商品优惠打折多少
    private String discount;
    //商品优惠后单个价格（优惠价）
    private double priceAfterDis;
    //商品总价（未优惠的整体价格）
    private double totalPrice;
    //商品优惠后总价（优惠后的整体价格）
    private double totalPriceAfterDis;
    //商品税率(百分比)
    private double vat;
    //商品税率 (具体多少=总优惠 总优惠=单个节省的钱*数量)
    private double vatMoney;

    private String no_discount;
    private String hot_goods;




    @Generated(hash = 325319958)
    public SoldGoodDetail(Long id, Long sellGoodHistoryId, Long productId,
            String englishName, String chineseName, Long number, double price,
            String discount, double priceAfterDis, double totalPrice,
            double totalPriceAfterDis, double vat, double vatMoney,
            String no_discount, String hot_goods) {
        this.id = id;
        this.sellGoodHistoryId = sellGoodHistoryId;
        this.productId = productId;
        this.englishName = englishName;
        this.chineseName = chineseName;
        this.number = number;
        this.price = price;
        this.discount = discount;
        this.priceAfterDis = priceAfterDis;
        this.totalPrice = totalPrice;
        this.totalPriceAfterDis = totalPriceAfterDis;
        this.vat = vat;
        this.vatMoney = vatMoney;
        this.no_discount = no_discount;
        this.hot_goods = hot_goods;
    }
    @Generated(hash = 107696215)
    public SoldGoodDetail() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }
    public Long getProductId() {
        return this.productId;
    }
    public void setProductId(Long productId) {
        this.productId = productId;
    }
    public String getEnglishName() {
        return this.englishName;
    }
    public void setEnglishName(String englishName) {
        this.englishName = englishName;
    }
    public String getChineseName() {
        return this.chineseName;
    }
    public void setChineseName(String chineseName) {
        this.chineseName = chineseName;
    }
    public Long getNumber() {
        return this.number;
    }
    public void setNumber(Long number) {
        this.number = number;
    }
    public double getPrice() {
        return this.price;
    }
    public void setPrice(double price) {
        this.price = price;
    }
    public String getDiscount() {
        return this.discount;
    }
    public void setDiscount(String discount) {
        this.discount = discount;
    }
    public double getPriceAfterDis() {
        return this.priceAfterDis;
    }
    public void setPriceAfterDis(double priceAfterDis) {
        this.priceAfterDis = priceAfterDis;
    }
    public double getTotalPrice() {
        return this.totalPrice;
    }
    public void setTotalPrice(double totalPrice) {
        this.totalPrice = totalPrice;
    }
    public double getTotalPriceAfterDis() {
        return this.totalPriceAfterDis;
    }
    public void setTotalPriceAfterDis(double totalPriceAfterDis) {
        this.totalPriceAfterDis = totalPriceAfterDis;
    }
    public double getVat() {
        return this.vat;
    }
    public void setVat(double vat) {
        this.vat = vat;
    }
    public double getVatMoney() {
        return this.vatMoney;
    }
    public void setVatMoney(double vatMoney) {
        this.vatMoney = vatMoney;
    }
    public Long getSellGoodHistoryId() {
        return this.sellGoodHistoryId;
    }
    public void setSellGoodHistoryId(Long sellGoodHistoryId) {
        this.sellGoodHistoryId = sellGoodHistoryId;
    }
    public String getNo_discount() {
        return this.no_discount;
    }
    public void setNo_discount(String no_discount) {
        this.no_discount = no_discount;
    }
    public String getHot_goods() {
        return this.hot_goods;
    }
    public void setHot_goods(String hot_goods) {
        this.hot_goods = hot_goods;
    }


}
